﻿<!DOCTYPE HTML>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
	<link href="/css/orderList.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="/static/js/jquery-1.4.2.js"></script>
</head>
<body>
<center>
<div id="top" th:insert="admintop.html"/><br/>
	<a href="/admin/orderlist?status=未付款">未付款</a>&nbsp;&nbsp;
	<a href="/admin/orderlist?status=已付款">已付款</a>&nbsp;&nbsp;
	<a href="/admin/orderlist?status=已发货">已发货</a>&nbsp;&nbsp;
	<a href="/admin/orderlist?status=未评价">未评价</a>&nbsp;&nbsp;
	<a href="/admin/orderlist?status=已评价">已评价</a>&nbsp;&nbsp;

	<!-- 提示您暂时没有订单信息 -->
	<p  class="no_order_info" th:if="${showorders.size() eq 0}">您暂时没有待发货订单</p>
	<!-- 模版数据 -start -->
	<div th:each="showorder:${showorders}">
		<div style="margin: 0 auto;width:999px;">
			<dl class="Order_information">
				<dt><h5>订单信息</h5>	</dt>
			</dl>

			<table style="width:999px;border-width:1px; border-style:groove;font-size:x-small;background:#d8d8d8;color:#333333">
				<tr>
					<th width="80" align="center" valign="middle" bgcolor="#f3f3f3">订单编号</th>
					<th width="100" height="30" align="center" valign="middle" bgcolor="#f3f3f3">商品图片</th>
					<th width="100" align="center" valign="middle" bgcolor="#f3f3f3">实付</th>
					<th width="100" align="center" valign="middle" bgcolor="#f3f3f3">下单时间</th>
					<th width="100" align="center" valign="middle" bgcolor="#f3f3f3">配送时间</th>
					<th width="300" align="center" valign="middle" bgcolor="#f3f3f3">收货人</th>
					<th width="100" align="center" valign="middle" bgcolor="#f3f3f3">订单状态</th>
					<th width="100" align="center" valign="middle" bgcolor="#f3f3f3">操作</th>
				</tr>

				<tr>
					<td align="center" valign="middle" bgcolor="#FFFFFF" th:text="${showorder.id}"> </td>
					<td align="center" valign="middle" bgcolor="#FFFFFF">
						<a th:href="'/index/flowerdetail?flowerid='+${showorder.flowerid}">
							<img th:src="'/picture/'+${showorder.pictures}" border=0></a>
					</td>
					<td align="center" valign="middle" bgcolor="#FFFFFF" th:text="${showorder.yourprice}+'*'+${showorder.num}+'='+${showorder.yourprice * showorder.num}+'元'"></td>
					<td align="center" valign="middle" bgcolor="#FFFFFF" th:text="${showorder.inputtime}"> </td>
					<td align="center" valign="middle" bgcolor="#FFFFFF" th:text="${showorder.peisongday+','+showorder.peisongtime}"></td>
					<td align="center" valign="middle" bgcolor="#FFFFFF">
						<span th:text="${showorder.sname}+','+${showorder.mobile}+','+${showorder.address}"/>
					</td>
					<td align="center" valign="middle" bgcolor="#FFFFFF" th:text="${showorder.status}"> </td>
					<td align="center" valign="middle" bgcolor="#FFFFFF">
						<div  th:if="${showorder.status eq '已付款'}">
							<a th:href="'/admin/send?id='+${showorder.id}">发货</a>
						</div>
						<div  th:unless="${showorder.status eq '已付款'}">
							<span th:text="${showorder.status}"/>
						</div>
					</td>
				</tr>

			</table>
		</div>

	</div>
	<!-- 模版数据 -end -->
	</center>
</body>
</html>